<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>微信公众号-回复管理</title>
    <meta name="description" content="ThinkCMF微信公众号插件">
    <meta name="keywords" content="ThinkCMF微信公众号插件">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:cmf_plugin_url('Wechat://AdminIndex/index')}">基本信息配置</a></li>
        <li><a href="{:cmf_plugin_url('Wechat://AdminIndex/menuIndex')}">菜单管理</a></li>
        <li class="active"><a href="{:cmf_plugin_url('Wechat://AdminIndex/replyIndex')}">自定义回复</a></li>
    </ul>
    <div class="nav-tabs margin-top-10">
        <a href="javascript:parent.openIframeLayer('{:cmf_plugin_url('Wechat://AdminIndex/replyAdd')}','添加自定义回复',{area:['50%','81%']});" class="btn btn-primary">添加自定义回复</a>
    </div>
    <div class="common-form">
        <form method="post" class="js-ajax-form" action="#">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="50">ID</th>
                        <th width="100">类型</th>
                        <th width="200">标题</th>
                        <th width="250">描述</th>
                        <th width="100">图片</th>
                        <th width="300">跳转链接</th>
                        <th width="100">关键词</th>
                        <th width="100">状态</th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="reply_list" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td><eq name="vo.type" value="1">图文<else/>文本</eq></td>
                            <td>{$vo.title}</td>
                            <td>{$vo.description}</td>
                            <td>
                            <notempty name="vo.picture">
                                <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.picture)}');">
                                    <!--<i class="fa fa-photo fa-fw"></i>-->
                                    <img src="{:cmf_get_image_preview_url($vo.picture)}" width="36" height="20">
                                </a>
                            </notempty>
                            </td>
                            <td>{$vo.url}</td>
                            <td>{$vo.key}</td>
                            <td><eq name="vo.status" value="1">显示<else/>隐藏</eq></td>
                            <td>
                                <a href="javascript:parent.openIframeLayer('{:cmf_plugin_url('Wechat://AdminIndex/replyEdit',['id'=>$vo['id']])}','修改自定义回复',{area:['50%','81%']});">修改</a> |
                                <a href="{:cmf_plugin_url('Wechat://AdminIndex/replyDel',['id'=>$vo['id']])}" class="js-ajax-delete">删除</a>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
            </div>
        </form>
    </div>
</div>
<include file="public/scripts"/>
</body>
</html>